@import "variables.scss";

:host {
  height: 100%;
  overflow-y: scroll;
}

.sidebar {
  background: white;
  height: 100%;
  overflow: scroll;

  &__header {
    padding: 4px 12px;
  }

  &__filter {
    position: relative;
    margin-bottom: 12px;
    &-input {
      border: none;
      border-bottom: 1px $neutral-color-200 solid;
      font-size: 16px;
      color: $neutral-color-1000;
      width: 100%;
      padding: 8px 4px 4px 18px;
      &:focus {
        border-bottom: 1px $primary-color-500 solid; 
      }
    }
    &-icon {
      position: absolute;
      top: 8px;
      width: 16px;
      height: 16px;
    }
  }

  &__item {
    font-family: $font-family-light;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 12px 12px 12px 32px;
    transition: .3s ease all;
    color: $neutral-color-500;
    border-top: 1px $neutral-color-100 solid;
    &:hover,
    &--selected {
      color: $primary-color-700;
      font-family: $font-family-bold;
    }

    &-name {
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
    }

    &-bookmark {
      position: absolute;
      top: -1px;
      left: 0px;
      margin-right: 4px;
      width: 24px;
      height: 24px;
      color: $neutral-color-200;
      transition: .3s ease all;
      opacity: .5;

      &:hover,
      &--selected {
        opacity: 1;
        color: $accent-color-600;
      }

      &--selected {
        &:hover {
          color: $neutral-color-200;
        }
      }
    }
    &-status {
      margin-left: 8px;
    }
  }

  &__message {
    color: $neutral-color-500;
    text-align: center;
    font-family: $font-family-light;
  }
}